package com.chance.cc.crawler.development.command.publish.hao3490;

import com.chance.cc.crawler.core.CrawlerJob;
import com.chance.cc.crawler.development.command.job.domain.hao3490.Hao3490CrawlerScheduleJob;
import com.chance.cc.crawler.development.command.script.news.NewsCrawlerScript;
import com.chance.cc.crawler.development.command.trigger.domain.news.NewsScheduleTrigger;

/**
 * @Author Zhao.Hhuan
 * @Date Create in 2020/12/21 17:14
 * @Description
 *      好妞妞食品招商网
 **/
public class Hao3490PublishCrawlerJob {
    private static final String domain = "3490";

    public static void main(String[] args) {
        publishCrawlerJob();
    }

    public static void publishCrawlerJob(){
        //发布采集job
        CrawlerJob crawlerJob = Hao3490CrawlerScheduleJob.publishhao3490CrawlerScheduleJobInfo();
        NewsScheduleTrigger.publishScheduleTriggerInfo(crawlerJob.generateCrawlerKey(), crawlerJob.generateCrawlerTriggerKey(),domain,"好妞妞食品招商网");
        NewsCrawlerScript.publishCrawlerNodeScript(domain);
    }
}
